CC=gcc -g -Wall
LIBEV=/opt/lib/libevent.a
all:ev_http_queue mcqueue dump
m.o:m.c
	${CC} -c -o m.o m.c
crc32.o:crc32.c
	${CC} -c -o crc32.o crc32.c
mcqueue.o:mcqueue.c
	${CC} -c -o mcqueue.o mcqueue.c -I /usr/local/include -I/opt/include
dump:dump.c
	${CC} -o dump dump.c
mcqueue:m.o mcqueue.o crc32.o
	${CC} -o mcqueue mcqueue.o m.o crc32.o ${LIBEV} -L/usr/local/lib -L/opt/lib -lpthread -lrt
ev_http_queue:m.o ev_http_queue.c crc32.o
	${CC} -o ev_http_queue ev_http_queue.c m.o crc32.o ${LIBEV} -L/usr/local/lib -I/opt/include -lpthread -lrt
clean:
	rm -f *.o mcqueue ev_http_queue dump
